package com.gp.learn.ssm.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gp.learn.ssm.base.core.mybaits.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统角色-用户关联
 * @author gp
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_role_user")
@ApiModel(value="BaseRoleUser对象", description="系统角色-用户关联")
public class BaseRoleUser extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户ID")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "角色ID")
    @TableField("roleId")
    private Long roleId;


}
